home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10213 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: Inter.NL.net!usenet
  2. From: Auke.Reitsma@net.HCC.nl (Auke Reitsma)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Help please: White background in text mode (Borland Turbo C)
  5. Date: Fri, 15 Mar 1996 23:03:58 GMT
  6. Organization: Inter.NL.net, The Internet Provider in The Netherlands.
  7. Message-ID: <4ictb1$736@altrade.nijmegen.inter.nl.net>
  8. References: <4iar74$l70@cs3.brookes.ac.uk>
  9. Reply-To: Auke.Reitsma@net.HCC.nl
  10. NNTP-Posting-Host: rt99-14.rotterdam.nl.net
  11. X-Newsreader: Forte Free Agent 1.0.82
  12.  
  13. Krunchie <95155580@brookes.ac.uk> wrote:
  14.  
  15. > I am writing a program that needs to have black text on a white 
  16. > background ( Using Borland Turbo C ). The nearest I can achieve is black 
  17. > text on a light grey background which is not good enough!!
  18.  
  19. > Does anybody know how I can achieve my goal? Is there some way I can 
  20. > change the text mode background pallete of seven colours??
  21.  
  22. You can toggle the blinkbit to get bright background colors ...
  23.  
  24. void setblinkbit(int state)  /* state:  0 = blink off  1 = blink on */
  25. {
  26.     union REGS regs;
  27.  
  28.     regs.x.ax = 0x1003;
  29.     regs.x.bx = (state) ? 1 : 0;
  30.     int86(0x10, ®s, ®s);
  31. }
  32.  
  33. Any significantly other answer is wrong.
  34.  
  35.  
  36. Greetings from Delft, The Netherlands.
  37.  
  38. Auke Reitsma
  39.  
  40.